package org.lyh.base.service;

import org.lyh.base.query.BaseQuery;
import org.lyh.base.util.PageInfo;

import java.util.List;

public interface IBaseService <T>{
    T queryOne(Long id);
    List<T> queryList();
    void addOne(T department);
    void deleteById(Long id);
    void updateOne(T department);

    void batchDelete(List<Long> ids);

    PageInfo<T> queryPage(BaseQuery dto);
}
